export {};

interface Eat {
  eat(food: string): void;
}
interface Run {
  run(instance: string): void;
}

class Person implements Eat, Run {
  eat(food: string) {
    console.log(`优雅的吃${food}`);
  }
  run(distance: string) {
    console.log("直立行走" + distance);
  }
}

class Animal implements Eat, Run {
  eat(food: string) {
    console.log(`趴着吃${food}`);
  }
  run(distance: string) {
    console.log("趴着走" + distance);
  }
}
